package cn.iocoder.yudao.module.api.product.spu.enums;

import cn.iocoder.yudao.framework.business.basic.enums.EnumValuable;
import cn.iocoder.yudao.module.api.product.ConfigConstants;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 前端请求的页签类型枚举
 *
 * @author 山野羡民
 */
@Getter
@AllArgsConstructor
public enum ProductSpuTabTypeEnum implements EnumValuable {

    ALL(-1, "全部"),
    FOR_SALE(0, "出售中"),
    IN_WAREHOUSE(1, "仓库中"),
    SOLD_OUT(2, "已售罄"),
    RECYCLE_BIN(4, "回收站"),
    WAIT_AUDIT(5, "待审核"),
    ALERT_STOCK(ConfigConstants.ALERT_STOCK, "警戒库存"),
    ;

    @EnumValue
    private final Integer value;
    private final String name;

}
